package com.arlen.general.exceptionHandle;

/**
 * @Author Arlen
 * @Description 自定义异常类
 * @Date 5:15 下午 2021/4/17
 **/
public class WxCustomException extends RuntimeException {
    private final String message;
    private String code;

    public WxCustomException(String message, String code) {
        this.message = message;
        this.code =code;
    }

    public WxCustomException(String message) {
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
